﻿
using easyVal;
using easyVal.ServerSide;
using easyVal.Web.Demo.Entities;
using easyVal.Web.Demo.Util;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;

namespace easyval.test
{
    /// <summary>
    ///This is a test class for EasyValCoreUtil_DataAnnotationsValidationRunnerTest and is intended
    ///to contain all EasyValCoreUtil_DataAnnotationsValidationRunnerTest Unit Tests
    ///</summary>
    [TestClass()]
    public class EasyValCoreUtil_DataAnnotationsValidationRunnerTest
    {

                //        var employee = new Employee();
                //employee.FirstName = txtFirstName.Text;
                //employee.Email = txtEmail.Text;
                //employee.DesiredSalary = TryParseUtil.TryParseIntOrNeg1(txtDesiredSalary.Text);
                //employee.PhoneNumber = txtPhone.Text;

                //List<ErrorInfo> errors = DataAnnotationsValidationRunner.GetErrors(employee);

                //if (errors.Any())
                //{
                //    throw new RulesException(errors);
                //}

    //    object instance = null; // TODO: Initialize to an appropriate value
        //    IEnumerable<ErrorInfo> expected = null; // TODO: Initialize to an appropriate value
        //    IEnumerable<ErrorInfo> actual;
        //    actual = EasyValCoreUtil.DataAnnotationsValidationRunner.GetErrors(instance);
        //    Assert.AreEqual(expected, actual);
        //    Assert.Inconclusive("Verify the correctness of this test method.");
        //}
    }
}
